#include<iostream>
using namespace std;

int main() {
	int m1[101], m2[101];
	int  n;
	cin >> n ;
	for (int i = 0; i < n; i++) {
		cin >> m1[i];
	}

	for (int i = 0; i < n; i++) {
		cin >> m2[i];
	}

	for (int i = 0; i < n; i++) {
		int tmp,sum=0;
		tmp = m1[i] * m2[i];
		sum = sum+tmp;
	}
	
	cout<<sum;


	return 0;
}


